package com.dy.design_pattern_study.decoration_mode.dome.first;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-03-13
 * @Content 耦合版本的类
 *
 * 或者把每个服饰都做成一个子类来进行使用？这种不行，类型太多了
 */
public class PersonCoupling {
    private String name;

    public PersonCoupling(String name) {
        this.name = name;
    }

    public void WearTShirts() {
        System.out.println("大T恤");
    }

    public void WearBigTrouser() {
        System.out.println("垮裤 ");
    }

    public void WearSneakers() {
        System.out.println("破球鞋 ");
    }

    public void WearSuit() {
        System.out.println("西装 ");
    }

    public void WearTie() {
        System.out.println("领带 ");
    }

    public void WearLeatherShoes() {
        System.out.println("皮鞋 ");
    }

    public void Show() {
        System.out.println(name + "的装扮...");
    }

    /**
     * 这个的话，就是超级耦合
     * -要修改某个功能都得去具体的方法中进行修改
     * @param args
     */
    public static void main(String[] args) {
        PersonCoupling xc = new PersonCoupling("路人甲");
        System.out.println("第一种装扮：");
        xc.WearTShirts();
        xc.WearBigTrouser();
        xc.WearSneakers();
        xc.Show();

        System.out.println("第二种装扮：");
        xc.WearSuit();
        xc.WearTie();
        xc.WearLeatherShoes();
        xc.Show();
    }

}
